//
//  MineCollectionViewCell.m
//  PaiLeXiongProject
//
//  Created by 小獾科技 on 2017/8/28.
//  Copyright © 2017年 小獾科技. All rights reserved.
//

#import "MineCollectionViewCell.h"

@implementation MineCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    if(self = [super initWithFrame:frame])
    {
        _imgView = [UIImageView new];
        _imgView.image = IMAGE(@"");
        _imgView.layer.backgroundColor = ColorClear.CGColor;
        _imgView.layer.cornerRadius = 4;
        [self addSubview:_imgView];
        [_imgView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self).offset(18);
            make.top.equalTo(self).offset(10);
            make.height.equalTo(@40);
            make.width.equalTo(@40);
        }];
        
        _messageReminder = [UILabel new];
        _messageReminder.backgroundColor = ColorFrom16(0xFF5B7A);
        _messageReminder.text = @"2";
        _messageReminder.layer.cornerRadius = 6;
        _messageReminder.layer.masksToBounds = YES;
        _messageReminder.textAlignment = 1;
        _messageReminder.textColor = ColorWhite;
        _messageReminder.font = PFRFONT(9);
        _messageReminder.hidden = YES;
        [self addSubview:_messageReminder];
        [_messageReminder mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self).offset(12);
            make.left.equalTo(self).offset(45);
            make.width.equalTo(@12);
            make.height.equalTo(@12);
        }];
        
        _functionLabel = [UILabel new];
        _functionLabel.text = @"待评价";
        _functionLabel.textColor = ColorFrom16(0x3333333);
        _functionLabel.font = PFRFONT(12);
        [self addSubview:_functionLabel];
        [_functionLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(_imgView.mas_bottom).offset(10);
            make.centerX.equalTo(_imgView.mas_centerX);
            make.width.greaterThanOrEqualTo(@30);
            make.height.equalTo(@17);
        }];
    }
    return self;
}

- (void)configWithArray:(numberModel *)model
{
//    for (NSString *message in array) {
//        _messageReminder.text = message;
        NSLog(@"message +++ message %@", model);
//    }
    
}


@end
